<template>
	<view>
		<web-view :src="src"  @message="getMessage" @onPostMessage="recivePostMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			}
		},
		onLoad(options) {
			let src = this.$common.getCache('webview_url')
			if (src) {
				this.src = src
			}
		},
		methods:{
			getMessage(e){
				console.log(e)
			},
			recivePostMessage(e){
				console.log(e)
			}
		}
	}
</script>

<style>
</style>
